package blah;

import java.util.Iterator;
import com.gargoylesoftware.base.testing.EventCatcher;

public class Main {
	public static void main(String[] args) throws Exception {
		ButtonBean subject = new ButtonBean();
		EventCatcher catcher = new EventCatcher();
		catcher.listenTo(subject);
		subject.show();
		System.out.println("Press return to see the events");
		System.in.read();
		Iterator i = catcher.getEvents().iterator();
		while (i.hasNext()) {
			System.out.println(i.next());
		}
	}
}
